(function(){
	angular.module('app').factory('darenTieComponentService', darenTieComponentService);

	darenTieComponentService.$inject = ['util','$q'];

	function darenTieComponentService(util,$q){

		return {
			getDarenTie:_getDarenTie
		}

		function _getDarenTie(json){

			var defer = $q.defer();


			util.$get({
				url:'/marketconditions/daren/getDarenFeeds.htm',
				data:json
			}).then(function(resp){

				defer.resolve(resp.value)

			},function(err){

				defer.reject(err);

			});

			return defer.promise;

		}
	}
})();